﻿package ui {
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	public class UIContainer extends UIItem {
		
		protected var w:Number = 0;
		protected var h:Number = 0;
		
		override public function get height():Number { return h; }
		
		override public function set height(value:Number):void {
			h = value;
		}
		
		public function getValues():Object {
			var values:Object = { };
			for (var i:int = 0; i < numChildren; i++) {
				var d:DisplayObject = getChildAt(i);
				if (d is IUIValue) {
					var uiv:IUIValue = d as IUIValue;
					values[uiv.uiName] = uiv.value;
				}
			}
			return values;
		}
	}
}